pkgname=kdecoration
pkgver=5.10.4
pkgrel=1
pkgdesc='Plugin based library to create window decorations'
arch="all"
url='https://www.kde.org/workspaces/plasmadesktop/'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules"
groups="plasma"
source="https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/$pkgname-$pkgver \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DKDE_INSTALL_SYSCONFDIR=/etc \
		-DBUILD_TESTING=OFF
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="$pkgdir" install
}
sha512sums="dc0c131d77279d443ce5515fee342e2f18fccd29fe0c7bc11fdfb5ed7ab10d3639bfea06b02a98efc5eee2456cf878e4b4579a0461df2397b5dfd4b0ef259d92  kdecoration-5.10.4.tar.xz"
